﻿package mortal.common.net
{

    public class RMIBase extends Object
    {
        protected var session:RMISession;

        public function RMIBase()
        {
            return;
        }// end function

        public function set rmiSession(param1:RMISession) : void
        {
            this.session = param1;
            this.initProxy();
            return;
        }// end function

        protected function initProxy() : void
        {
            return;
        }// end function

        public function get isConnected() : Boolean
        {
            if (this.session && this.session.session && this.session.session.communicator)
            {
                return this.session.session.communicator.connected;
            }
            return false;
        }// end function

    }
}
